import request from "@/utils/request";

// 查询积分规则配置列表
export function listConfig(query) {
  return request({
    url: "/library/boIntegralConfig/list",
    method: "get",
    params: query,
  });
}

// 查询积分规则配置详细
export function getConfig(id) {
  return request({
    url: "/library/boIntegralConfig/" + id,
    method: "get",
  });
}

// 新增积分规则配置
export function addConfig(data) {
  return request({
    url: "/library/boIntegralConfig",
    method: "post",
    data: data,
  });
}

// 修改积分规则配置
export function updateConfig(data) {
  return request({
    url: "/library/boIntegralConfig",
    method: "put",
    data: data,
  });
}

// 删除积分规则配置
export function delConfig(id) {
  return request({
    url: "/library/boIntegralConfig/" + id,
    method: "delete",
  });
}
